<div class="col-md-2 col-sm-2 col-xs-2" id='{{dbname}}'>
  <div class="info-box">
   {% if long_query_conn_count != '0' or lock_count != '0' or lock_object_count != '0' %}
    <span class="info-box-icon bg-red">{{ dbname }}</span>
    {% else %}
    <span class="info-box-icon bg-green">{{ dbname }}</span>
    {% endif %}
    <div class="info-box-content">
      
      <span class="info-box-number">
        <span  > 长查询 : 
        {% if long_query_conn_count != '0' %}
        <span style="color: red">{{ long_query_conn_count  }}</span>
        {% else %}
        <span style="color: green">{{ long_query_conn_count  }}</span>
        {% endif %}
        </span> 
      </span>  
       
      <span class="info-box-number">
        <span >锁:  
        {% if lock_count != '0' %}
        <span style="color: red">{{ lock_count  }}</span>
        {% else %}
        <span style="color: green">{{ lock_count  }}</span>
        {% endif %}

        </span> 
      </span> 
       
      <span class="info-box-number">
        <span >锁对象: 

        {% if lock_object_count != '0' %}
        <span style="color: red">{{ lock_object_count  }}</span>
        {% else %}
        <span style="color: green">{{ lock_object_count  }}</span>
        {% endif %}
        </span> 
      </span>   

      <span class="info-box-number">
        <span >活跃sql:  {{ sql_count  }} 
        </span> 
      </span>  
	 
    </div> 
  </div> 
</div>